package com.vito.dcs.water.device.dao;

import com.vito.dcs.water.device.model.WaterStationModel;

import java.util.List;

/**
 * @program: WaterStationMapper
 * @description: 水稳拌合站信息表持久化接口
 * @author: rongr
 * @create: 2019/04/11
 */
public interface WaterStationMapper {

    /**
     * 保存waterStationModel对象
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer saveWaterStation(WaterStationModel waterStationModel);

    /**
     * 通过主键更新waterStationModel对象
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer updateWaterStation(WaterStationModel waterStationModel);

    /**
     * 根据Id查询waterStationModel对象
     *
     * @Param: [waterStationModel]
     * @return: com.vito.dcs.water.device.model.WaterStationModel
     */
    public WaterStationModel queryWaterStationById(WaterStationModel waterStationModel);

    /**
     * 分页查询waterStationModel对象
     *
     * @Param: [waterStationModel]
     * @return: java.util.List<com.vito.dcs.water.device.model.WaterStationModel>
     */
    public List<WaterStationModel> queryWaterStationByPage(WaterStationModel waterStationModel);

    /**
     * 分页查询waterStationModel对象记录条数
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer queryWaterStationPageCount(WaterStationModel waterStationModel);

    /**
     * 删除waterStationModel对象
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer deleteStationModel(WaterStationModel waterStationModel);

    /**
     * 删除waterStationModel对象关联的Blender
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer delBlenderFromStation(WaterStationModel waterStationModel);

    /**
     * 删除waterStationModel对象关联的Pore
     *
     * @Param: [waterStationModel]
     * @return: java.lang.Integer
     */
    public Integer delPoreFromStation(WaterStationModel waterStationModel);

    /**
     * 根据拌合站ID查看是否存在搅拌机
     * @param blenderId
     * @return
     */
    public String queryWaterPoreBlenderId(String  blenderId);
}

